import request from '@/utils/request'

// 查询薪级薪资设置列表
export function listSaralySettings(query) {
  return request({
    url: '/compensationManagement/saralySettings/list',
    method: 'get',
    params: query
  })
}

// 查询薪级薪资设置详细
export function getSaralySettings(payId) {
  return request({
    url: '/compensationManagement/saralySettings/' + payId,
    method: 'get'
  })
}

// 新增薪级薪资设置
export function addSaralySettings(data) {
  return request({
    url: '/compensationManagement/saralySettings',
    method: 'post',
    data: data
  })
}

// 修改薪级薪资设置
export function updateSaralySettings(data) {
  return request({
    url: '/compensationManagement/saralySettings',
    method: 'put',
    data: data
  })
}

// 删除薪级薪资设置
export function delSaralySettings(payId) {
  return request({
    url: '/compensationManagement/saralySettings/' + payId,
    method: 'delete'
  })
}
